/**
  ******************************************************************************
  * @file    app_typedef.h
  * @author  AnshininTakaha
  * @version V1.0
  * @date		 2021/12/22
  * @brief   The file of the type macro definition.
	* @copyright (c) 2017-2021 JZI. All rights reserved.
  ******************************************************************************
  */
/* Define to prevent recursive inclusion ----------------	---------------------*/
#ifndef DEVICEES_APP_TYPEDEF_H
#define DEVICEES_APP_TYPEDEF_H

/* Includes ------------------------------------------------------------------*/

/* Exported constants --------------------------------------------------------*/
/* Code use label */
#define LIDAR_USE_CODE

/* Rf use label */
#define USE_E22_RF

/* Change Lidar front position */
#define USE_LEFT_FRONT

#define USE_NEW_PROTOCOL 0
#define VERSION	0X0C

#define myabs(x)	((x>0)? (x):(-x))
#define FLOAT_FUSION	0.001f
/* Administrator Mode */
#define Flash_AdministratorMode

/* Function labels */
#define REGISTER_INIT			/* Modules register or init */
#define PROCESS						/* Module process */
#define INSPECT						/* Moudule Inspection */
#define ALGORITHM					/* Algorithm calculate */
#define INFOGET						/* Infomations get */
#define INFOSET						/* Infomations set */
#define TRANS_CALBCK			/* Transfer & Callback */

/* Exported macros -----------------------------------------------------------*/

/* Exported types ------------------------------------------------------------*/
typedef enum
{
	RETURN_OK 				 	=  0, /* States/Function perfrom perfectly */
	RETURN_ERROR 			 	= -1, /* States/Function perfrom error */
	RETURN_ERROR_PARAM 	= -2, /* States/Function param error */
	RETURN_ERROR_INSPECT= -3,
}_RETURN_STATE;

/* Exported variables --------------------------------------------------------*/
/* End -----------------------------------------------------------------------*/
#endif
